package alumninet.persistence.entities.user;

import java.util.List;

import javax.persistence.Basic;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.OneToMany;
import javax.xml.bind.annotation.XmlRootElement;

import alumninet.persistence.entities.BaseEntity;

@XmlRootElement
@Entity
public class AlumniUser extends BaseEntity {
	@Basic(optional = true)
	@Column(unique = true, nullable = false, length = 500)
	private String userId;
	private String diplayName;
	private String email;
	private String first_name;//	The first name of the person who posted the position.
	private String last_name;//	The last name of the person who posted the position.

	public String getFirst_name() {
		return first_name;
	}

	public void setFirst_name(String first_name) {
		this.first_name = first_name;
	}

	public String getLast_name() {
		return last_name;
	}

	public void setLast_name(String last_name) {
		this.last_name = last_name;
	}

	@OneToMany
	private List<Account> accounts;
	public String getUserId() {
		return userId;
	}

	public void setUserId(String uid) {
		this.userId = uid;
	}

	public String getDiplayName() {
		return diplayName;
	}

	public void setDiplayName(String diplayName) {
		this.diplayName = diplayName;
	}

	public String getEmail() {
		return email;
	}

	public void setEmail(String email) {
		this.email = email;
	}

	public List<Account> getAccounts() {
		return accounts;
	}

	public void setAccounts(List<Account> accounts) {
		this.accounts = accounts;
	}

}